gtk-demo: Don't make demos modal
authorBenjamin Otte <otte@redhat.com>
Sun, 12 Jul 2020 01:35:11 +0000 (03:35 +0200)
committerBenjamin Otte <otte@redhat.com>
Thu, 16 Jul 2020 18:43:16 +0000 (20:43 +0200)
That way, demo windows can be maximized and multiple demos can run at
once.

It's especially useful when using --run because the main window is
invisible then.

demos/gtk-demo/main.c

index 880dcbaf1bab720585b8392e90efc99af359bf83..0e3283aaa85b723f239472e11ba1d8a147769e3a 100644 (file)
@@ -1249,7 +1249,6 @@ out:
       demo = (func) (window);
 
       gtk_window_set_transient_for (GTK_WINDOW (demo), GTK_WINDOW (window));
-      gtk_window_set_modal (GTK_WINDOW (demo), TRUE);
 
       g_signal_connect_swapped (G_OBJECT (demo), "destroy", G_CALLBACK (g_application_quit), app);
     }